package atenas.servlet;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class InicioServlet1
 */
@WebServlet("/InicioServlet1")
public class InicioServlet1 extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public InicioServlet1() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		/*
		String a = request.getParameter("txtOperadorA");
		
		String b = request.getParameter("txtOperadorB");
		
		double a2 = Double.parseDouble(a);
		
		double b2 = Double.parseDouble(b);
			
		double res  = a2 + b2;
		
		request.setAttribute("CALCULO", res);
		*/
		//PrintWriter out = response.getWriter();
		//out.print("<html><body> El resultado es: "  + res + " </body></html>");
		
		
		
		
		RequestDispatcher rd = request.getRequestDispatcher("/Buscar Cliente.jsp");
		rd.forward(request, response) ;
	}

}
